<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<div class="shadow">
  <br></br>
  <fieldset id="agrupacion">

<legend>Criterios de busqueda</legend>
<br />

<% form_tag url_for(:action=>"update_table"),{:id=> "transfers_form_search"} do%>
<p class="two-col"><label> Patrimonio Cultural: </label><%= select_tag "heritage_name", options_for_select(@heritages.collect {|t| [t.name, t.id]}), :include_blank=>"Seleccione", :class => 'combobox'%> </p>
<p class="two-col"><label> Origen: </label><%= select_tag "origin_place", options_for_select(@origins.collect {|t| [t.name, t.id]}) , :include_blank=>"Seleccione", :class => 'combobox'%> </p>
<p class="two-col"><label> Destino: </label><%= select_tag "destiny_place", options_for_select(@destinies.collect {|t| [t.name, t.id]}) , :include_blank=>"Seleccione", :class => 'combobox'%> </p>



<input class="button" name="Buscar" value="Buscar" type="submit"/><span id="loading_search" style="display:none"></span>
<%end%>
  </fieldset>
<br />
<fieldset id="agrupacion">
  <legend>Listando Traslados</legend>
<div id="transfers_table">
  <%= render :partial=>"table"%>
</div>




</fieldset>
<br></br>
<%= link_to 'Nuevo Traslado', new_cultural_heritage_transfer_path %>
<br></br>

</div>
